#include<cstdio>
using namespace std;
int main()
{
	int n, oddSum = 0, evenSum = 0;
	scanf("%d", &n);
	for (int i = 1; i <= n; i++)
	{
		if (i % 2 == 0)
		{
			evenSum += i;
		}
		else
		{
			oddSum += i;
		}
	}
	printf("%d %d", evenSum, oddSum); 
	return 0;
}
